﻿@model Boolean
@{
    ViewData["Title"] = "VideoValid";
}

@if (Model)
{
    <div id="div_device" class="panel panel-default" style="display: none;">
        <div class="select">
            <label for="audioSource">Audio source: </label><select id="audioSource"></select>
        </div>
        <div class="select">
            <label for="videoSource">Video source: </label><select id="videoSource"></select>
        </div>
        App ID: <input id="appId" type="text" value="1e993fe554cd413b8e2d6098cb9b1178" size="36"></input>
        Channel: <input id="channel" type="text" value="1000" size="4"></input>
        Host: <input id="video" type="checkbox" checked></input>
    </div>
    <div id="div_join" class="panel panel-default">
        <div class="panel-body">
            <a id="join" class="layui-btn layui-btn-warm">视频认证</a>
            @*<a id="leave" class="layui-btn layui-btn-danger">离开</a>*@
            @*<button id="publish" class="btn btn-primary" onclick="publish()">Publish</button>
                <button id="unpublish" class="btn btn-primary" onclick="unpublish()">Unpublish</button>*@
        </div>
    </div>
    <div class="panel panel-default">
        <div class="" style="margin-bottom:20px;">支持以下浏览器</div>
        <div class="panel-body">
            <a href="https://www.google.cn/intl/zh-CN/chrome/" target="_blank" title="谷歌浏览器"><img src="~/images/icon/chrome-logo.svg" /></a>
            <a href="http://down.360safe.com/se/360se10.0.1668.0.exe" target="_blank" title="360安全浏览器"><img style="width:50px;" src="~/images/icon/360Browser.png" /></a>
            <a href="https://dldir1.qq.com/invc/tt/QQBrowser_Setup_qb10.exe" target="_blank" title="QQ浏览器"><img  src="~/images/icon/QQBrowser.jpg" /></a>
        </div>
    </div>

    <div id="video" style="margin:0 auto;">
        <div id="agora_local" style="float:right;width:210px;height:147px;display:inline-block;"></div>
    </div>
}
else
{
    <div style="text-align:center; padding-top: 8em;">
        <h1 style="color:red;">管理员帐号不能视频认证!</h1>
    </div>
}




@section Scripts {
    <script type="text/javascript" src="~/layui/layui.js"></script>
    <script src='~/lib/agora/AgoraRTC-development.js'></script>
    <script type="text/javascript" src="~/js/account.video.js?_=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
}
